﻿using JIG_SoftTemplate.ViewModels;
using System.Windows.Controls;

namespace JIG_SoftTemplate.Views
{
    /// <summary>
    /// LoginPage.xaml 的交互逻辑
    /// </summary>
    public partial class LoginPage : Page
    {
        public LoginPage(LoginPageViewModel viewModel)
        {
            InitializeComponent();

            DataContext = viewModel;
        }
        private void Page_Loaded(object sender, System.Windows.RoutedEventArgs e)
        {
            this.PwdBox.Focus();
        }
        private void Page_GotFocus(object sender, System.Windows.RoutedEventArgs e)
        {
            this.PwdBox.Focus();
        }

        private void Page_PreviewKeyDown(object sender, System.Windows.Input.KeyEventArgs e)
        {
            this.PwdBox.Focus();
        }
    }
}
